/*    */ package com.behavior.memento;
/*    */ 
/*    */ 
/*    */ public class MementoTest
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/*  6 */     Originator originator = new Originator();
/*  7 */     CareTaker careTaker = new CareTaker();
/*  8 */     originator.setState("State #1");
/*  9 */     originator.setState("State #2");
/* 10 */     careTaker.addMemento(originator.saveStateToMemento());
/* 11 */     originator.setState("State #3");
/* 12 */     careTaker.addMemento(originator.saveStateToMemento());
/* 13 */     originator.setState("State #4");
/*    */ 
/* 15 */     System.out.println("Current State is " + originator.getState());
/* 16 */     originator.setStateFromMemento(careTaker.getMemento(0));
/* 17 */     System.out.println("Frist save State is " + originator.getState());
/*    */   }
/*    */ }

/* Location:           C:\Users\lenovo\Desktop\DesignMode.jar
 * Qualified Name:     com.behavior.memento.MementoTest
 * JD-Core Version:    0.6.2
 */